<?php
header("Content-Type:text/html;charset=utf-8");
set_time_limit(0);
include_once dirname(dirname(__FILE__))."/include/common.inc.php";
include_once dirname(dirname(__FILE__))."/dazhan/function.dazhan.php";

	$global_site = "dazhan";
	
	$caiurl = 'http://jycn.cn/htm/i';
	//抓取，提取和入库
	$sql = "select * from dazhan_sitecol";
	$query = $conn->query($sql);
	while($row = $conn->fetch_assoc($query)){
		$in = $row['siteurl'];
		echo $in.'page:'.$row['page'];
		jycn_crawl($in,$caiurl,$row['id'],$row['page']);
	}
?>